package com.meituan.sdk.model.ddzhkh.shangpin.productResourceSubmit;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 创建/编辑提交套餐
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/shangpin/resource/submit",
    businessId = 59,
    apiVersion = "10007",
    apiName = "product_resource_submit",
    needAuth = true
)
public class ProductResourceSubmitRequest implements MeituanRequest<ProductResourceSubmitResponse> {
    /**
    * <p data-diff-id="ct-diff-id-2f5fa7a8-89bf-412e-9c47-5bc9979e16aa">资源</p>
    */
    @NotBlank(message = "resource不能为空")
    @SerializedName("resource")
    private String resource;
    /**
    * <p data-diff-id="ct-diff-id-c7f303a1-8b1a-4ff9-82ca-a4decee11257"><span style="color: rgba(0, 0, 0, 0.65)">门店ID。</span><span style="color: rgba(0, 0, 0, 0.87)">该字段是混淆字段，实际值类型为混淆后的字符串类型。</span></p>
    */
    @NotEmpty(message = "opPoiIds不能为空")
    @SerializedName("opPoiIds")
    private List<String> opPoiIds;

    public String getResource() {
        return resource;
    }
    public void setResource(String resource) {
        this.resource = resource;
    }
    public List<String> getOpPoiIds() {
        return opPoiIds;
    }
    public void setOpPoiIds(List<String> opPoiIds) {
        this.opPoiIds = opPoiIds;
    }


    @Override
    public MeituanResponse<ProductResourceSubmitResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ProductResourceSubmitResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ProductResourceSubmitRequest{" + "resource=" + resource + "," + "opPoiIds=" + opPoiIds + "}";
    }
}
